let person = new class {
    constructor(name) { this.name = name; }
    sayName() { console.log(this.name); }
}('zhang san');
person.sayName();
